<#assign fields=parm["fields"] >
{
	"cells": [{
		"shape": "edge",
		"attrs": {
			"line": {
				"stroke": "#7c68fc",
				"targetMarker": {
					"name": "block",
					"width": 12,
					"height": 8
				}
			}
		},
		"id": "a4c1656d-4049-40a4-b662-879d1a8d6b23",
		"zIndex": 0,
		"source": {
			"cell": "898cad2e-d929-4b1b-b542-b4154c4090aa",
			"port": "d22f96be-19ff-46f8-929c-427191f4a676"
		},
		"target": {
			"cell": "5524867c-1308-42fa-b4ed-d4f0da55f2da",
			"port": "7d7158e8-3bc6-4460-b111-528b456abb3e"
		}
	}, {
		"shape": "edge",
		"attrs": {
			"line": {
				"stroke": "#7c68fc",
				"targetMarker": {
					"name": "block",
					"width": 12,
					"height": 8
				}
			}
		},
		"id": "cba595a3-6c6f-4940-a19a-0e29fe2c6638",
		"zIndex": 0,
		"source": {
			"cell": "5524867c-1308-42fa-b4ed-d4f0da55f2da",
			"port": "dd29f638-3e99-4f14-9dc7-a852308beb5d"
		},
		"target": {
			"cell": "da4b87ad-ed2f-4d3b-a481-8de3628af5c8",
			"port": "406e8fe2-97ed-4de4-8b28-948a015f0f1d"
		}
	}, {
		"shape": "edge",
		"attrs": {
			"line": {
				"stroke": "#7c68fc",
				"targetMarker": {
					"name": "block",
					"width": 12,
					"height": 8
				}
			}
		},
		"id": "83ce5762-17f7-4da0-bd2d-c98da7597bec",
		"zIndex": 0,
		"source": {
			"cell": "da4b87ad-ed2f-4d3b-a481-8de3628af5c8",
			"port": "2f8526ab-bcb6-4e7d-b66a-71601161ed7b"
		},
		"target": {
			"cell": "b24185db-2b0c-4f09-910f-66c57b850fd7",
			"port": "b1de2f9d-ee7c-4310-bd1d-8f91e7f54aaa"
		}
	}, {
		"position": {
			"x": 520,
			"y": 120
		},
		"size": {
			"width": 100,
			"height": 38
		},
		"attrs": {
			"body": {
				"fill": "#67C23A",
				"stroke": "#2dc9be",
				"strokeWidth": "1",
				"ValTxt": "开始组件",
				"ValType": "start"
			},
			"label": {
				"fill": "#fff",
				"refX": "50%",
				"textAnchor": "middle",
				"text": "开始组件",
				"y": 20
			},
			"variable": {
				"text": null
			},
			"field": {
				"text": null
			},
			"position": {
				"0": "b",
				"1": "o",
				"2": "t",
				"3": "t",
				"4": "o",
				"5": "m"
			}
		},
		"shape": "custom-node",
		"tools": {
			"items": [{
				"name": "button-remove",
				"args": {
					"x": 100,
					"y": 2,
					"zIndex": 10
				}
			}]
		},
		"id": "898cad2e-d929-4b1b-b542-b4154c4090aa",
		"zIndex": 3,
		"formData": {
			"type": "start",
			"code": 1694428583620,
			"name": "开始节点",
			"circulationList": [{
				"linkID": "a4c1656d-4049-40a4-b662-879d1a8d6b23",
				"condition": "",
				"nodeId": "5524867c-1308-42fa-b4ed-d4f0da55f2da",
				"nodeName": "名称：有效性校验"
			}]
		},
		"ports": {
			"groups": {
				"top": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"right": {
					"position": "right",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"bottom": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"left": {
					"position": "left",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"end": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#31d0c6",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"start": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				}
			},
			"items": [{
				"group": "start",
				"id": "d22f96be-19ff-46f8-929c-427191f4a676"
			}]
		}
	}, {
		"position": {
			"x": 520,
			"y": 580
		},
		"size": {
			"width": 100,
			"height": 38
		},
		"attrs": {
			"body": {
				"fill": "#67C23A",
				"stroke": "#2dc9be",
				"strokeWidth": "1",
				"ValTxt": "结束组件",
				"ValType": "end"
			},
			"label": {
				"fill": "#fff",
				"refX": "50%",
				"textAnchor": "middle",
				"text": "结束组件",
				"y": 20
			},
			"variable": {
				"text": null
			},
			"field": {
				"text": null
			},
			"position": {
				"0": "b",
				"1": "o",
				"2": "t",
				"3": "t",
				"4": "o",
				"5": "m"
			}
		},
		"shape": "custom-node",
		"tools": {
			"items": [{
				"name": "button-remove",
				"args": {
					"x": 100,
					"y": 0
				}
			}]
		},
		"id": "b24185db-2b0c-4f09-910f-66c57b850fd7",
		"zIndex": 10,
		"formData": {
			"type": "end",
			"code": 1694428584348,
			"name": "处理结束",
			"flag": "200",
			"msg": "",
			"argProperties": [],
			"circulationList": []
		},
		"ports": {
			"groups": {
				"top": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"right": {
					"position": "right",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"bottom": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"left": {
					"position": "left",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"end": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#31d0c6",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"start": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				}
			},
			"items": [{
				"group": "end",
				"id": "b1de2f9d-ee7c-4310-bd1d-8f91e7f54aaa"
			}]
		}
	}, {
		"position": {
			"x": 420,
			"y": 400
		},
		"size": {
			"width": 300,
			"height": 80
		},
		"attrs": {
			"body": {
				"fill": "#fff",
				"stroke": "orange",
				"strokeWidth": "2",
				"ValTxt": "快速保存",
				"ValType": "DB_FAST_SAVE"
			},
			"label": {
				"text": "快速保存",
				"y": 15
			},
			"variable": {
				"fill": "#004EA2",
				"text": "名称：写入到数据库中",
				"title": "写入到数据库中"
			},
			"field": {
				"fill": "green",
				"text": "出参："
			},
			"position": {
				"0": "b",
				"1": "o",
				"2": "t",
				"3": "t",
				"4": "o",
				"5": "m"
			}
		},
		"shape": "custom-node",
		"tools": {
			"items": [{
				"name": "button-remove",
				"args": {
					"x": 300,
					"y": 0
				}
			}]
		},
		"id": "da4b87ad-ed2f-4d3b-a481-8de3628af5c8",
		"formData": {
			"type": "DB_FAST_SAVE",
			"code": 1694428674483,
			"name": "写入到数据库中",
			"table": "${parm.tableName}",
<#list fields as item >
	<#if item.isPk == '1'>
			"pkname": "${item.columnName}",
			"pkvalue": "${r"${"}${item.columnName}${r"}"}",
	</#if>
</#list>
			"gtype": "1",
			"autoIncrement": "true",
			"saveData": {
<#assign loopCnt=0 >
<#list fields as item >
	<#if item.isPk != '1'>
				<#if loopCnt != 0 >,</#if>
				<#assign loopCnt++ >
	            "${item?index}": {
	            	"fieldName": "${item.columnName}",
					"value": "${r"${"}${item.columnName}${r"}"}"
	            }
	</#if>
</#list>
			},
			"circulationList": [{
				"linkID": "83ce5762-17f7-4da0-bd2d-c98da7597bec",
				"condition": "",
				"nodeId": "b24185db-2b0c-4f09-910f-66c57b850fd7",
				"nodeName": "结束组件"
			}]
		},
		"zIndex": 11,
		"ports": {
			"groups": {
				"top": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"right": {
					"position": "right",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"bottom": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"left": {
					"position": "left",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"end": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#31d0c6",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"start": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				}
			},
			"items": [{
				"group": "top",
				"id": "406e8fe2-97ed-4de4-8b28-948a015f0f1d"
			}, {
				"group": "right",
				"id": "b23b46c9-bdda-4892-92bf-a8e6c03cb1d3"
			}, {
				"group": "bottom",
				"id": "2f8526ab-bcb6-4e7d-b66a-71601161ed7b"
			}, {
				"group": "left",
				"id": "a270424b-73d9-4e66-a148-dbd4766344d7"
			}]
		}
	}, {
		"position": {
			"x": 420,
			"y": 230
		},
		"size": {
			"width": 300,
			"height": 80
		},
		"attrs": {
			"body": {
				"fill": "#fff",
				"stroke": "#2dc9be",
				"strokeWidth": "1",
				"ValTxt": "有效性批量校验",
				"ValType": "CHECKE_BATCH"
			},
			"label": {
				"text": "有效性批量校验",
				"y": 15
			},
			"variable": {
				"fill": "#004EA2",
				"text": "名称：有效性校验",
				"title": "有效性校验"
			},
			"field": {
				"fill": "green",
				"text": "出参："
			},
			"position": {
				"0": "b",
				"1": "o",
				"2": "t",
				"3": "t",
				"4": "o",
				"5": "m"
			}
		},
		"shape": "custom-node",
		"tools": {
			"items": [{
				"name": "button-remove",
				"args": {
					"x": 300,
					"y": 0
				}
			}]
		},
		"id": "5524867c-1308-42fa-b4ed-d4f0da55f2da",
		"formData": {
			"type": "CHECKE_BATCH",
			"code": 1694428595268,
			"name": "有效性校验",
			"CHECK_LIST": {
<#assign loopCnt=0 >
<#list fields as item >
	<#if item.isNil != '1' && item.isPk!="1">
		<#if loopCnt!=0 >,</#if>
		<#assign loopCnt++ >
	            "${item?index}": {
	            	"DATA": "${item.columnName}",
	            	"CHECK_TYPE": "Null",
	            	"MSG": "${item.name}不能为空"
	            }
	</#if>
</#list>
			},
			"circulationList": [{
				"linkID": "cba595a3-6c6f-4940-a19a-0e29fe2c6638",
				"condition": "",
				"nodeId": "da4b87ad-ed2f-4d3b-a481-8de3628af5c8",
				"nodeName": "名称：写入到数据库中"
			}]
		},
		"zIndex": 12,
		"ports": {
			"groups": {
				"top": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"right": {
					"position": "right",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"bottom": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"left": {
					"position": "left",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"end": {
					"position": "top",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#31d0c6",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				},
				"start": {
					"position": "bottom",
					"attrs": {
						"circle": {
							"r": 8,
							"magnet": true,
							"stroke": "#873bf4",
							"strokeWidth": 1,
							"fill": "#fff",
							"style": {
								"visibility": "hidden"
							}
						}
					}
				}
			},
			"items": [{
				"group": "top",
				"id": "7d7158e8-3bc6-4460-b111-528b456abb3e"
			}, {
				"group": "right",
				"id": "2d84972d-60d1-4130-a089-3419d6fc6f8d"
			}, {
				"group": "bottom",
				"id": "dd29f638-3e99-4f14-9dc7-a852308beb5d"
			}, {
				"group": "left",
				"id": "beee7e41-2a4c-4f80-be8b-c30e7a125027"
			}]
		}
	}],
	"rectId": 1
}